import { LogoutIcon } from 'tdesign-icons-vue-next';
import { shallowRef } from 'vue';

import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/user',
    name: 'user',
    component: Layout,
    redirect: '/user/index',
    meta: { orderNo:1,title: '用户', icon: 'user-circle'},
    children: [
      {
        path: 'index',
        name: 'UserIndex',
        component: () => import('@/pages/user/index.vue'),
        meta: { title: '会员信息',hidden:true },
      },
	  {
	    path: 'list',
	    name: 'UserList',
	    component: () => import('@/pages/user/list.vue'),
	    meta: { title: '用户列表' },
	  },
      {
        path: 'opt',
        name: 'UserOpt',
        component: () => import('@/pages/user/opt/index.vue'),
        meta: { title: '操作记录' ,hidden:true},
      },
      {
        path: 'share',
        name:'ShareIndex',
        component: () => import('@/pages/user/share/index.vue'),
        meta: { title: '分享有赏' ,hidden:true },
      },
    ],
  },
  {
      path: '/loginRedirect',
      name: 'loginRedirect',
      redirect: '/login',
      meta: { title: { zh_CN: '登录页', en_US: 'Login' }, icon: shallowRef(LogoutIcon),hidden:true },
      component: () => import('@/layouts/blank.vue'),
      children: [
        {
          path: 'index',
          redirect: '/login',
          component: () => import('@/layouts/blank.vue'),
          meta: { title: { zh_CN: '登录页', en_US: 'Login' } },
        },
      ]
  }
];
